package vn.orderonline.core.dao.entity;

import javax.persistence.AttributeOverride;
import javax.persistence.AttributeOverrides;
import javax.persistence.Column;
import javax.persistence.EmbeddedId;
import javax.persistence.Entity;
import javax.persistence.Table;

@Entity
@Table(name = "MENU_FOOD_FOOD")
public class MenuFoodFood implements java.io.Serializable {

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	private MenuFoodFoodId id;
	
	public MenuFoodFood() {
		
	}
	
	public MenuFoodFood(MenuFoodFoodId id) {
		this.id = id;
	}
	 
	@EmbeddedId
	@AttributeOverrides({
		@AttributeOverride(name = "menuFoodId", column = @Column(name = "MENU_FOOD_ID")),
		@AttributeOverride(name = "foodId", column = @Column(name = "FOOD_ID")) })
	public MenuFoodFoodId getId() {
		return id;
	}
	
	public void setId(MenuFoodFoodId id) {
		this.id = id;
	}
	
}
